]> dgit.raspbian.org Git - gnome-shell.git/commit
NetworkMenu: fix number of visible networks
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 19 Nov 2011 18:01:24 +0000 (19:01 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 7 Dec 2011 14:35:19 +0000 (15:35 +0100)
commitaad9179373cdcda5696fbf5958c191e66a85f2eb
tree7d0bafe7f51a47b175367c295b6badedecdae680
parentd5b4e30eb7e26e822a1af2e2b8ef97817b3abea6
NetworkMenu: fix number of visible networks

When placing networks in _createSection, we were taking in
consideration that _activeNetwork is always first, by adding 1,
but then kept this offset also for networks following it (normally,
all of them, since _activeNetwork is also the most recently used),
that instead should not be affected by the movement.
This resulted in the menu showing 4 networks + More... instead of
5.

https://bugzilla.gnome.org/show_bug.cgi?id=664124
js/ui/status/network.js